package com.cubeofnine.sugar.activity.import_contact;

import android.content.Context;
import android.util.Log;

public class SyncDownContactsListRunnable implements Runnable {
	private Context context;
	private int totalCount;
	private int insertCount;
	private String errorMessage;

	public SyncDownContactsListRunnable(Context context, int totalCount,
			int insertCount, String errorMessage) {
		this.context = context;
		this.totalCount = totalCount;
		this.insertCount = insertCount;
		this.errorMessage = errorMessage;
	}

	public String getClassName() {
		return SyncDownContactsListRunnable.class.getName();
	}

	public void run() {
		Log.i(getClassName(), "run() : Start");

		((ImportContactsListActivity) context).resultSyncProcess(totalCount,
				insertCount, errorMessage);

		Log.i(getClassName(), "run() : End");
	}

}
